package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;

@Data
@Table(name = "ROLE")
public class Role extends BaseEntity {
    /**
     * 角色状态  启用
     */
    public static final String ROLE_STATUS_ENABLE = "true";
    /**
     * 角色状态  停用
     */
    public static final String ROLE_STATUS_DISABLE = "false";

    /**
     * 管理员角色Id
     */
    public static final String ROLE_ADMINISTRATOR_ID = "0001AA10000000092U8G";
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @TableId
    private String id;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 角色状态
     */
    private String status;
    /**
     * 备注
     */
    private String remark;
    @TableField(exist = false)
    private String resourceId;
    @TableField(exist = false)
    private String resourceName;

}
